@extends('adminDialog')
@section('content')
    <form action="{{url('admin/user/newm/'.$model->id)}}" method="POST" class="J_ajaxForm"
          style="height:  height: 599px;">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <div class="pop_cont pop_table" style="overflow-y: scroll;height: 529px;">
            <table width="100%">
                <tbody>
                <tr>
                    <th><label for="title">门店账号 <span class="red">*</span></label></th>
                    <td>
                        <input type="text" name="name" id="name" class="input length_6" value="{{$model->name}}"/>
                    </td>
                </tr>
                <tr>
                    <th><label for="title">联系电话 <span class="red">*</span></label></th>
                    <td>
                        <input type="text" name="mobile" id="mobile" class="input length_6" value="{{$model->mobile}}"/>
                    </td>
                </tr>
                <tr>
                    <th><label for="title">电子邮箱 <span class="red">*</span></label></th>
                    <td>
                        <input type="text" name="email" id="email" class="input length_6" value="{{$model->email}}"/>
                    </td>
                </tr>

                <tr>
                    <th><label for="title">门店密码 <span class="red">*</span></label></th>
                    <td>
                        <input type="text" name="password" id="password" class="input length_6" value=""/>
                    </td>
                </tr>

                <tr>
                    <th><label for="title">再次输入密码 <span class="red">*</span></label></th>
                    <td>
                        <input type="text" name="password_confirmation" id="password_confirmation" class="input length_6" value=""/>
                    </td>
                </tr>

                <tr>
                    <th><label for="title">门店昵称 <span class="red">*</span></label></th>
                    <td>
                        <input type="text" name="nick" id="nick" class="input length_6" value="{{$model->nick}}"/>
                    </td>
                </tr>

                <tr>
                    <th><label for="title">真实姓名 </label></th>
                    <td>
                        <input type="text" name="real_name" id="real_name" class="input length_6" value="{{$model->real_name}}"/>
                    </td>
                </tr>

                <tr>
                    <th><label for="title">是否启用 <span class="red">*</span></label></th>
                    <td>
                        <input type="radio" name="status" value="1" {{1 == $model->status ? "checked='checked'" : ''}}/> 启用
                        <input type="radio" name="status" value="0" {{1 != $model->status ? "checked='checked'" : ''}}/> 禁用
                    </td>
                </tr>

                </tbody>
            </table>
        </div>

        <div class="pop_bottom cc">
            <button type="reset" class="btn fr" id="J_dialog_close">取消</button>
            <button type="submit" class="btn btn_submit J_ajax_submit_btn fr mr10" id="J_dialog_close">提交</button>
        </div>
    </form>
@stop

@section('style')
    <style>
        .body_none {
            width: 720px;
        }
    </style>
@stop